package com.pinyougou.mapper;

import com.pinyougou.pojo.Brand;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;
import java.util.Map;

/**
 * BrandMapper接口
 *
 * @Author:shilv
 * @Date:Create in 20:01 2019/6/29
 * @Version: 1.0
 */
public interface BrandMapper extends Mapper<Brand> {
    /** 多条件查询品牌 */
    List<Brand> findAll(Brand brand);

    @Select("select id, name as text from tb_brand order by id asc")
    List<Map<String,Object>> findAllByIdAndName();
}
